//app.js
App({
  onLaunch: function () {
    let systemInfo = wx.getSystemInfoSync()
    let menuButton = wx.getMenuButtonBoundingClientRect()
    let paddingTop = systemInfo.statusBarHeight + (menuButton.height + (menuButton.top - systemInfo.statusBarHeight) * 2)
    let screenHeight = systemInfo.screenHeight
    let pageHeight = screenHeight * 2 - paddingTop * 2 - 120
    let pageAllHeight = screenHeight * 2 - paddingTop * 2
    let windowH = systemInfo.windowHeight
    let windowW = systemInfo.windowWidth
    this.globalData.paddingTop = paddingTop
    this.globalData.pageHeight = pageHeight
    this.globalData.pageAllHeight = pageAllHeight
    this.globalData.windowH = windowH
    this.globalData.windowW = windowW
  },
  globalData: {
    paddingTop: 0,
    pageHeight: 667,
    pageAllHeight: 667,
    windowH: 667,
    windowW: 375,
  }
})